package core.communication.message;

import java.awt.Color;
import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;

public class NodeState implements Serializable {
	private static final long	serialVersionUID	= 6470862305318779113L;

	private NodeStateEnum		stateEnum;
	private Date				modifiedDate;

	public NodeState(NodeStateEnum state) {
		this.stateEnum = state;
		this.modifiedDate = Calendar.getInstance().getTime();
	}

	public NodeStateEnum getStateEnum() {
		return stateEnum;
	}

	public void setStateEnum(NodeStateEnum stateEnum) {
		this.stateEnum = stateEnum;
	}

	public Color getColor() {
		return stateEnum.getColor();
	}

	public Date getModifiedDate() {
		return modifiedDate;
	}

	public void setModifiedDate(Date modifiedDate) {
		this.modifiedDate = modifiedDate;
	}
}
